Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grafana API improvements #232

Merged
merged 9 commits into from
Mar 29, 2020
Merged

Grafana API improvements #232

merged 9 commits into from
Mar 29, 2020

Conversation

daisycrego
Copy link
Contributor

@daisycrego daisycrego commented Mar 29, 2020

  • Add tests to new GrafanaConfigurations (GFConfig) view which stores and validates Grafana credentials.
  • Update Grafana class to better support credential validation - added a method to validate credentials, improved error handling so that callers can try-except for different error cases. Added tests for expected error cases.

daisycrego and others added 9 commits March 28, 2020 18:14
…t expected error messages are displayed, confirm that a GFConfig object can be created successfully.
…Modify all tests and views that create a Grafana instance so that they first create a GFConfig. Condense code for building API endpoint urls. Fix issue with events test that was leading to Quota reached API failures (some tests were creating dashboards but not cleaning them up).
…: Grafana constructor now takes a GFConfig object directly.
GFConfig testing; Change Grafana class to take GFConfig in constructor; Fix issue with API tests causing Quota Reached error
Copy link
Contributor

@dandipietrantonio dandipietrantonio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@dandipietrantonio dandipietrantonio merged commit 25434d8 into master Mar 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants